package com.lmaye.design.patterns.ood.dip.deliveryMode;

/**
 * -- Set方法传递
 *
 * @author lmay.Zhou
 * @date 2020/11/12 18:05 星期四
 * @qq 379839355
 * @email lmay@lmaye.com
 * @since JDK1.8
 */
public class SetterDelivery {
    private IMobile mobile;

    public void setMobile(IMobile mobile) {
        this.mobile = mobile;
    }

    public void delivery() {
        mobile.call("Setter ");
    }
}
